<template>
  <div class="declare">
    <div class="declare__title">
      <svg-icon icon-class="alert"></svg-icon><span>声明</span>
    </div>
    <div class="text-box">
      <span>本站网址 【</span>
      <span class="site">{{ server.domain }}</span>
      <span>】 为【</span>
      <span class="site">{{ server.name }}</span>
      <span>】的官方唯一域名,其它均为未经授权的仿冒。本机构通过官网上【</span>
      <span class="site">关于本站·联系我</span>
      <span>】提供服务。</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BoardDeclare',
  data() {
    return {
      server: sa.$sys.getCurSer(),
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
@import '@/styles/mixin.scss';

.declare {
  @include flex-column;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  width: 100%;
  border-radius: 4px;
  background: #fff;
  min-height: 120px;
  transition: all 0.3s ease;
  justify-content: center;
  
  &:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }
}

.declare__title {
  display: flex;
  align-items: center;
  color: #f56c6c;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 4px 0;
}

.declare__title .svg-icon {
  margin-right: 10px;
  font-size: 20px;
  transform: translateY(-1px);
}

.text-box {
  color: #606266;
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
  margin: 0 auto;
  padding: 0 16px;
  
  @media (max-width: 768px) {
    font-size: 13px;
    padding: 0 8px;
  }
  
  .site {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}

.text-box .site {
  color: #409eff;
  font-weight: 500;
}
</style>
